/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2022-04-29 13:38:45
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-05-05 16:26:22
 */
import request from '@/utils/request'

// 查询岗位-证书列表
export function listQualificationCert(query) {
  return request({
    url: '/qualification/qualificationCert/list',
    method: 'get',
    params: query
  })
}

export function treeselect(query) {
  return request({
    url: '/qualification/qualificationCert/treeselect',
    method: 'get',
    params: query
  })
}

// 查询岗位-证书详细
export function getQualificationCert(id) {
  return request({
    url: '/qualification/qualificationCert/' + id,
    method: 'get'
  })
}

// 新增岗位-证书
export function addQualificationCert(data) {
  return request({
    url: '/qualification/qualificationCert',
    method: 'post',
    data: data
  })
}

// 修改岗位-证书
export function updateQualificationCert(data) {
  return request({
    url: '/qualification/qualificationCert',
    method: 'put',
    data: data
  })
}

// 删除岗位-证书
export function delQualificationCert(id) {
  return request({
    url: '/qualification/qualificationCert/' + id,
    method: 'delete'
  })
}

// 导出岗位-证书
export function exportQualificationCert(query) {
  return request({
    url: '/qualification/qualificationCert/export',
    method: 'get',
    params: query
  })
}
export function qualCount(query) {
  return request({
    url: '/qualification/qualificationPost/count',
    method: 'get',
    params: query
  })
}